package com.lh.struts.filter;

import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpServletResponseWrapper;
/**
 ************************************************
 ** Module :发送字符的封装编码类
 ** Date: 2011-12-27  Time: 下午12:14:31 
 ** Author 李恒(liheng)
 ** (C) Copyright 2011 广州赢典信息科技有限公司
 ************************************************ 
 */
public class CharacterEncodingHttpServletResponseWrapper extends HttpServletResponseWrapper { 
    private String ecoding = null;

    public CharacterEncodingHttpServletResponseWrapper(HttpServletResponse response,String encoding) {
        super(response);
        this.ecoding = encoding;
    }
    public void setContentType(String value) {
        super.setContentType("text/html;charset="+ecoding);
    }
}
